package com.bob.like.mq.event;

import cn.hutool.core.date.DateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ThumbEvent {
    private Long userId;
    private Long blogId;
    private Integer type; // INCR / DECR
    private DateTime eventTime;

    public enum EventType {
        INCR(1), DECR(-1);
        private final int value;
        EventType(int value) { this.value = value; }
        public int getValue() { return value; }
    }
}
